<!DOCTYPE html>
<head>
    <meta charset="UTF-8">
    <title>块元素和行内元素的区别</title>
</head>
<body>
    <div>div是块元素</div>
    <h1>标题</h1>
    <p>段落</p>
    <hr />
    <span>span是行内</span><b>b标签</b><i>i标签</i><font>font标签</font><img src="img/640.jpg" /><input type="text" /><textarea></textarea>
</body>
</html>